const mongoose = require('mongoose')

mongoose.connect('mongodb://localhost:27017/uploader')

mongoose.connection.on('error',err => console.log(err))
mongoose.connection.once('open',() => console.log('mongodb connection'))

require('./image')
require('./comment')
require('./user')